import { Carousel } from 'antd';
import React from 'react';

const contentStyle: React.CSSProperties = {
  color: '#fff',
  height: '40vh',
  lineHeight:'40vh',
  width: '100%',
  textAlign: 'center',
  background: 'skyblue',
};

export default () => (
  <div style={{width: '100vw'}}>
    <Carousel autoplay>
      <div>
        <h3 style={contentStyle}>1</h3>
      </div>
      <div>
        <h3 style={contentStyle}>2</h3>
      </div>
      <div>
        <h3 style={contentStyle}>3</h3>
      </div>
      <div>
        <h3 style={contentStyle}>4</h3>
      </div>
    </Carousel>
  </div>
);
